package com.zzedu.system.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.zzedu.common.annotation.Excel;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.io.Serializable;

/**
 * 省市区信息对象 sys_region
 * 
 * @author Mr.Wang
 * @date 2023-03-08
 */
@TableName("sys_region")
public class SysRegion implements Serializable
{
    private static final long serialVersionUID = 1L;

    /** 区域ID */
    @TableId
    private String regionId;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private String regionName;

    /** 父节点ID */
    @Excel(name = "父节点ID")
    private String parentId;

    /** 级别 */
    @Excel(name = "级别")
    private Long regionLevel;


    /**
     *
     */
    @TableField(exist = false)
    private boolean leaf;
    public void setRegionId(String regionId) 
    {
        this.regionId = regionId;
    }

    public String getRegionId() 
    {
        return regionId;
    }
    public void setRegionName(String regionName) 
    {
        this.regionName = regionName;
    }

    public String getRegionName() 
    {
        return regionName;
    }
    public void setParentId(String parentId) 
    {
        this.parentId = parentId;
    }

    public String getParentId() 
    {
        return parentId;
    }
    public void setRegionLevel(Long regionLevel) 
    {
        this.regionLevel = regionLevel;
    }

    public Long getRegionLevel() 
    {
        return regionLevel;
    }

    public boolean getLeaf() {
        return leaf;
    }

    public void setLeaf(boolean leaf) {
        this.leaf = leaf;
    }

    @Override
    public String toString() {
        return ToStringBuilder.reflectionToString(this, ToStringStyle.JSON_STYLE);
    }
}
